#include<iostream>
#include<algorithm>
using namespace std;
int n,num[10005],k;

int main(){
    cin>>n>>k;
    for(int i=1;i<=n;i++){
        cin>>num[i];
    }
    sort(num+1,num+n+1);
    n=unique(num+1,num+n+1) - num -1;
    if(k>n){
    	cout<<"NO RESULT"<<endl;
    } else{
    	cout<<num[k]<<endl;
    }
}